package old;

//构建房子
public class House {
    private Roof roof;

    public House(int area) {
        roof = new Roof(area);
    }

    public void build() {
        roof.build();
        System.out.println("House construction completed.");
    }

    //主函数：代表向甲方交房
    public static void main(String[] args) {
        //客户终于可以设置想要的房屋面积了。。
        House house = new House(999);
        house.build();
        System.out.println("delivered the property successfully.");
    }
}
